<?php


namespace app\common\service\coupon\sync_channel;

use app\model\CouponProductChannel;

class Synchronize
{

    protected $type;

    public function __construct($type)
    {
        $this->type = $type;
    }

    public function sync()
    {
        return CouponProductChannel::query()->where('type',$this->type)->where('status', CouponProductChannel::STATUS_ACTIVE)->column('origin_id','id');
    }


}